package com.wjjun.base.binding.conversion

import android.graphics.drawable.ColorDrawable
import androidx.databinding.BindingConversion

/**
 *
 * 数据绑定类型转换器
 * author : wangjunjun
 * date   : 2022/6/2
 * desc   :
 */

@BindingConversion
fun convertColorToDrawable(color: Int): ColorDrawable {
    return ColorDrawable(color)
}
